package com.hk.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hk.model.entity.User;
import com.hk.model.vo.IdVO;
import com.hk.model.vo.user.*;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author 20231
* @description 针对表【user(用户表)】的数据库操作Service
* @createDate 2024-12-11 20:38:27
*/
public interface UserService extends IService<User> {

    /**
     * 用户注册
     */
    Long register(UserRegisterVO userRegisterVO);

    /**
     * 登录
     */
    UserVO login(UserLoginVO loginVO,HttpServletRequest request);

    /**
     * 获取当前用户
     */
    UserVO getCurrentUser(HttpServletRequest request);

    void  logout(HttpServletRequest request);

    void delete(IdVO idVO);

    UserVO addUser(UserEditVO userVO);

    UserVO updateUser(UserEditVO userVO);

    List<UserVO> getUserList(UserQueryParamVO queryParamVO);

    UserVO getUserInfo(Long id);

    Page<UserVO> getUserPageList(UserQueryParamVO queryParamVO);

    List<UserVO> getUserListById(List<Long> userIdList);

    boolean isAdmin(HttpServletRequest request);
}
